import {
  defineStore
} from 'pinia'
export const useStore = defineStore('main', {
  unistorage: true, // 是否持久化
  state: () => {
    return {
      messageList: [], //聊天数据
    }
  },
  actions: {
    saveMessage(messagelist) {
      this.messageList = messagelist
    }
  },
  getters: {

  }
})
